package com.sysware.neo4jdemo.entity;

import org.neo4j.ogm.annotation.EndNode;
import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.Property;
import org.neo4j.ogm.annotation.RelationshipEntity;
import org.neo4j.ogm.annotation.StartNode;

@RelationshipEntity(type = "HAS_SEEN")
public class Seen {
	public Seen(Integer stars, User startNode, Movie endNode) {
		this.stars = stars;
		this.startNode = startNode;
		this.endNode = endNode;
	}

	@GraphId
	private Long id;
	
	@Property
	private Integer stars;
	
	@StartNode
	private User startNode;
	
	@EndNode
	private Movie endNode;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getStars() {
		return stars;
	}

	public void setStars(Integer stars) {
		this.stars = stars;
	}

	public User getStartNode() {
		return startNode;
	}

	public void setStartNode(User startNode) {
		this.startNode = startNode;
	}

	public Movie getEndNode() {
		return endNode;
	}

	public void setEndNode(Movie endNode) {
		this.endNode = endNode;
	}

}
